package com.td.module.farmer.controller.admin.management.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.td.framework.desensitize.core.slider.annotation.IdCardDesensitize;
import com.td.framework.desensitize.core.slider.annotation.MobileDesensitize;
import com.td.framework.excel.core.annotations.DictFormat;
import com.td.framework.excel.core.convert.DictConvert;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * 农户土地信息 Excel VO
 *
 * @author 王翔翔
 */
@Data
public class ManagementExcelVO {

    @ExcelProperty("主键id")
    private Long id;

    @ExcelProperty("农户编码")
    private String farmerCode;

    @ExcelProperty("农户姓名")
    private String name;

    @ExcelProperty("身份证号码")
    @IdCardDesensitize
    private String certificateCode;

    @ExcelProperty("手机号")
    @MobileDesensitize
    private String mobile;

    @ExcelProperty("地块总个数")
    private Integer landNum;

    @ExcelProperty("地块总面积")
    private BigDecimal landArea;

    @ExcelProperty(value = "所种农产品类型", converter = DictConvert.class)
    @DictFormat("agro_review_product_type")
    private Integer agroProductType;

    @ExcelProperty(value = "土地类型", converter = DictConvert.class)
    @DictFormat("land_type")
    private Integer landType;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
